# $Id: Makefile,v 1.1 2006-10-23 07:54:47 nicolasw Exp $

SOURCES= memdriver_test.c memdriver.c heapmanager.c bitmap.c atable.c mem_op.c carga.c
LIBS= 
CC= gcc
CFLAGS= -Wall -Wextra -Wdeclaration-after-statement -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-declarations -Wmissing-prototypes -Werror -g
OBJECTS=$(SOURCES:.c=.o)
TARGET= memdriver_test

all: $(TARGET)

clean:
	rm -f $(TARGET) $(OBJECTS) .depend massif* mtrace.log *~

-include .depend

.depend: $(SOURCES) *.h
	gcc -MM $(SOURCES) >.depend

$(TARGET): $(OBJECTS)
	$(CC) -o $@ $^ $(LIBS)
